﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace caykethua
{
    class Program
    {
        static void Main(string[] args)
        {
            sinhvien p = new sinhvien();
            p.nhap();
            p.hienthi();
            Console.WriteLine(" ten sinh vien : " +p.get_hoten());
            Console.WriteLine(" ma sinh vien : " +p.get_msv());
            Console.WriteLine(" ma lop : " +p.get_ma_lop());
            Console.ReadKey();
            	

        }
    }
    class sinhvien
    {
        //du lieu
        private string hoten;
        private string msv;
        private string ma_lop;
        //hanh vi
        //ham tao
        public sinhvien()
        {
            hoten= "";
            msv = "" ;
            ma_lop="";
        }
        //ham tao nap chong
        public sinhvien(string ten, string masv, string malop)
        {
            hoten = ten;
            msv = masv;
            ma_lop = malop;
        }
        //ham cap nhat du lieu
        //doi voi moi du lieu can co 1 ham cap nhat.
        public void set_hoten(string ht)
        {
            hoten = ht;
        }
        public void set_msv(string masv)
        {	
        	msv = masv;
        
        }
        public void set_ma_lop(string mlop)
        {	
        	ma_lop = mlop;
        
        }
        
        //... xay dung cac ham con lai
        //
        //ham lay du lieu
        public string get_msv()
        {
            return msv;
        }
        
        public string get_hoten()
        {
        	return hoten;
        }
        public string get_ma_lop()
        {
        	return ma_lop;
        }
       
        //.... xay dung cac ham con lai
        //
        //hanh vi
        public void nhap()        
        {
            Console.WriteLine("Nhap ho ten:");
            hoten = Console.ReadLine();
            Console.WriteLine("Nhap msv: ");
            msv = Console.ReadLine();
            Console.WriteLine("Nhap ma_lop: ");
            ma_lop = Console.ReadLine();
        }
        public void hienthi()
        { 
            Console.WriteLine();
        }
    }

}
